﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="StoreList.ascx.vb" Inherits="FrontEnd_Control_Store_StoreList" %>
<%@ Import Namespace="Cls_common" %>
<script type='text/javascript'>
    function ajaxJquery() {
        $(function () {
            //show hidden box search

            $(".Date").datepicker({ dateFormat: 'dd/mm/yy' });
            // ChangeShow();            
            //check cookie to show or hide search pannel
            if ($.cookie('CookieSSMSearch') == 1) {
                $('#pnlSearch').show();
            }
            else {
                $('#pnlSearch').hide();
            }

            $("#<%=btnClear.ClientID %>").click(function () {
                $("#divExpert").css("display", "none");
                return true;
            });

            $('#B1').click(function (event) {
                //set cookie
                if ($.cookie('CookieSSMSearch') == 1) {
                    $.cookie('CookieSSMSearch', 0)
                }
                else {
                    $.cookie('CookieSSMSearch', 1)
                }
                $('#pnlSearch').slideToggle(500);

                if ($('#imgShowHide').attr("src") == "images/arrow_popup.gif") {

                    $('#imgShowHide').attr("src", "images/arrow_showless.gif");
                }
                else {
                    $('#imgShowHide').attr("src", "images/arrow_popup.gif");
                }
            });

        });
    }


    function ResetSearch() {
        $('#pnlSearch [type=text]').each(function (e) {
            $(this).val("");
        });
        $('#pnlSearch select').each(function (e) {
            $(this).attr('selectedIndex', 0);
        });

        return false;
    }
    
</script>
<asp:UpdatePanel ID="udpStoreList" runat="server">
    <ContentTemplate>
        <div class="div_title_green row_subtitle">
            <span class="label_title_green">
                <img src="images/icon_chiase.png" border="0" align="absmiddle">
                <a id="ContentPlaceHolder1_List1_hplTitle">HỘ KINH DOANH</a> </span>&nbsp;&nbsp;</div>
        <div style="clear: both; height: 10px;">
        </div>
        <img alt="" src="images/arrow_showless.gif" id="imgShowHide" />
        <a id="B1" href="#">Tìm kiếm </a>
        <div id="pnlSearch">
            <div class="DivRow" style="padding-bottom: 28px">
                <div class="DivLabel" style="width: 25%; text-align: right; float: left">
                    Tên hộ kinh doanh:</div>
                <div class=" DivTextBox" style="width: 70%; float: left">
                    <asp:TextBox ID="txtTenHoKinhDoanh" runat="server" CssClass='TextBox'></asp:TextBox></div>
            </div>
            <div class="DivRow">
                <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                    Người đại diện:</div>
                <div class="DivTextBox" style="width: 70%; float: left">
                    <asp:TextBox ID="txtNguoiDaiDien" runat="server" CssClass='TextBox'></asp:TextBox>
                </div>
            </div>
            <div id="divExpert" style="display: none" class="DivRow">
                <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                    Địa chỉ:</div>
                <div class="DivTextBox" style="width: 70%; float: left">
                    <asp:TextBox ID="txtDiaChi" runat="server" CssClass='TextBox'></asp:TextBox>
                </div>
            </div>
            <%--        <div class="DivRow">
                            <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                                Lĩnh vực kinh doanh:</div>
                            <div class="DivTextBox" style="width: 70%; float: left">
                                <asp:DropDownList ID="ddlLinhVucKinhDoanh" runat="server" CssClass="DropDownList">
                                </asp:DropDownList>
                            </div>
                        </div>--%>
            <div class="DivRow">
                <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                    Lĩnh vực kinh doanh:</div>
                <div class="DivTextBox" style="width: 70%; float: left">
                    <asp:DropDownList ID="ddlNganhNgheKinhDoanh" runat="server" CssClass="DropDownList">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="DivRow">
                <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                    Huyện / Thành phồ:</div>
                <div class="DivTextBox" style="width: 70%; float: left">
                    <asp:DropDownList ID="ddlHuyen" runat="server" CssClass="DropDownList">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="DivRow">
                <div style="float: left; width: 240px; height: 20px; text-align: right;" class="DivLabel">
                </div>
                <div class="DivTextBox">
                    <div class="btnOrange_large">
                        <asp:Button ID="btnFilter" runat="server" Text='Tìm kiếm' CssClass="btn btn-sm btn-info" />
                    </div>
                    <div class="btnOrange_large">
                        <asp:Button ID="btnClear" runat="server" CausesValidation="false" Text="Đặt lại"
                            CssClass="btn" />
                    </div>
                </div>
            </div>
        </div>
        <div style="clear: both; height: 10px;">
        </div>
        <asp:Repeater ID="rptShow" runat="server">
            <ItemTemplate>
                <div class="cell_salonoto">
                    <asp:HyperLink ID="hplWrapper" runat="server" Target="_blank" CssClass="wrapper-hyperlink" />
                    <div class="inner_salonoto">
                        <div class="row_salonoto_1">
                            <div class="title_salon">
                                <asp:HyperLink ID="hplTitle" runat="server" Target="_blank"></asp:HyperLink>
                            </div>
                        </div>
                        <div class="row_salonoto_2">
                            <div class="left_cell_1">
                                <div class="desc_salon">
                                    <asp:Literal ID="ltrSlogan" runat="server"></asp:Literal>
                                </div>
                            </div>
                            <div class="right_cell_1">
                                <div class="thumb_salon">
                                    <div class="inner_thumb_salon">
                                        <asp:Image ID="img" BorderWidth="0" runat="server" CssClass="img-responsive" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row_salonoto_3">
                            <asp:Literal ID="ltrAddress" Text="" runat="server" />
                        </div>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div style="clear: both; height: 10px;">
        </div>
        <div class="row_paging_ListByCat">
            <!--phan trang-->
            <div class="text_sumbottom">
                Tổng :
                <asp:Label ID="lblTotal2" runat="server" Text="0"></asp:Label></div>
            <div style="width: 100%;margin-top: -10px;">
                <div id="results_resultsNavigationDiv" class="paginationEMP">
                    <asp:LinkButton ID="lnkFirst" Visible="false" runat="server"></asp:LinkButton>
                    <asp:Repeater ID="rptPage" runat="server">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkTitle" CssClass="page_num" runat="server" OnClick="lnkTitle_Click"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:LinkButton ID="lnkLast" Visible="false" runat="server"></asp:LinkButton>
                </div>
            </div>
            <asp:HiddenField ID="hidCount" Value="0" runat="server" />
            <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
            <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
            <asp:HiddenField ID="hidStoreId" Value="0" runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
